package com.hdj.chapter17;

/**
 * @author hdj
 * @description
 * @date 2017/12/14.
 */
public class MyHandler extends AbstractHandler implements Handler {

    private String name;

    public MyHandler(String name){
        this.name = name;
    }

    @Override
    public void operator() {
        System.out.println(name + "deal!!!");
        if(getHandler()!=null){
            getHandler().operator();
        }
    }
}
